home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
src
/
dc1
/
hash.a
< prev
next >
Wrap
Text File
|
1993-01-17
|
398b
|
29 lines
;xxxx Prototype long hash(register ubyte *buf, register short bytes);
;XXX deleted, prototype is in sym.c
; HASH.A
;
;
section text,code
xdef _hash
xdef @hash
_hash move.l 4(sp),A0
move.l 8(sp),D0
@hash
move.l D2,-(sp)
moveq.l #0,D1 ; v
bra henter
hloop rol.w #5,D1
move.b (A0)+,D2
eor.b D2,D1
henter dbf D0,hloop
move.l D1,D0
move.l (sp)+,D2
rts
END